Skip to content

ci(release): full self-contained Windows Vulkan/HIP bundles + README fork note#78

Merged
khosravipasha merged 2 commits into
prismfrom
ci/win-full-bundles
Jul 17, 2026
Merged

ci(release): full self-contained Windows Vulkan/HIP bundles + README fork note#78
khosravipasha merged 2 commits into
prismfrom
ci/win-full-bundles

Conversation

@khosravipasha

Copy link
Copy Markdown
Collaborator

What

Two fixes prompted by #71 (a user couldn't run the Windows Vulkan release — it shipped only ggml-vulkan.dll, and grafting it onto stock llama.cpp failed with an ABI/offset mismatch):

  1. Windows Vulkan & HIP releases now ship complete, self-contained bundles.
    Previously these jobs built with -DGGML_CPU=OFF --target ggml-<backend> and packed only the
    single backend DLL — an add-on that had to be merged into the CPU zip. Now they build the full
    set (CPU backends + the GPU backend) and pack the whole build/bin, so one download runs out of
    the box. This matches what the Linux ubuntu-vulkan job already does.

    • windows-vulkan: build with GGML_CPU_ALL_VARIANTS=ON -DGGML_VULKAN=ON (dropped GGML_CPU=OFF
      and --target ggml-vulkan), pack build/bin/Release/*.
    • windows-hip: dropped GGML_CPU=OFF, full build (dropped --target ggml-hip); pack already
      included the whole build/bin.
    • GGML_OPENMP=OFF on both to avoid an extra OpenMP runtime DLL dependency in the bundle.
  2. README fork note. Many users land on this fork directly (not the Bonsai-demo). Added a note
    at the top: start with Bonsai-demo; use a complete matching build (don't mix our libs into stock
    llama.cpp); use *-Q2_0_g64.gguf models (group-64 official Q2_0) vs legacy *-Q2_0.gguf (g128)
    / *-PQ2_0.gguf.

Note

Windows CI can't be built locally (no Windows here) — relying on this PR's CI to validate the
Vulkan/HIP full builds. Targeting prism (production) as requested; migration to newer prism branch
later.

Closes #71 (once released).

readme: add Prism fork note (start with Bonsai-demo, main caveats)
@github-actions github-actions Bot added documentation Improvements or additions to documentation devops labels Jul 16, 2026
@khosravipasha
khosravipasha requested a review from Copilot July 17, 2026 00:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Makes Windows Vulkan/HIP releases self-contained and adds fork compatibility guidance.

Changes:

  • Builds and packages complete Windows Vulkan/HIP binaries.
  • Disables OpenMP to avoid runtime DLL dependencies.
  • Adds PrismML model and release guidance.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
README.md Adds fork and model compatibility guidance.
.github/workflows/release-prism.yml Produces complete Windows GPU bundles.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md Outdated
>
> If you use this fork directly, the main caveats:
> - **Use a complete matching build** — download the full bundle for your OS+backend from our [Releases](https://github.com/PrismML-Eng/llama.cpp/releases), or build from source. Do **not** drop this fork's `ggml-*` libraries into a stock llama.cpp build (ABI mismatch — this will fail to load models).
> - **Models:** use the `*-Q2_0_g64.gguf` files (official **group-64** `Q2_0`). The legacy `*-Q2_0.gguf` (group 128) won't load on group-64 builds; `*-PQ2_0.gguf` is this fork's group-128 variant.
Comment thread README.md Outdated
> [!IMPORTANT]
> **This is the PrismML fork of llama.cpp.** It adds the `Q2_0` / `PQ2_0` 2-bit quantization used by the [Bonsai](https://huggingface.co/collections/prism-ml/bonsai) models.
>
> **New here? Start with the [Bonsai-demo](https://github.com/PrismML-Eng/Bonsai-demo) repo** — it downloads the right model files and the correct prebuilt binaries for your hardware/backend automatically.
Comment thread README.md Outdated
> **New here? Start with the [Bonsai-demo](https://github.com/PrismML-Eng/Bonsai-demo) repo** — it downloads the right model files and the correct prebuilt binaries for your hardware/backend automatically.
>
> If you use this fork directly, the main caveats:
> - **Use a complete matching build** — download the full bundle for your OS+backend from our [Releases](https://github.com/PrismML-Eng/llama.cpp/releases), or build from source. Do **not** drop this fork's `ggml-*` libraries into a stock llama.cpp build (ABI mismatch — this will fail to load models).
Comment thread README.md Outdated
> If you use this fork directly, the main caveats:
> - **Use a complete matching build** — download the full bundle for your OS+backend from our [Releases](https://github.com/PrismML-Eng/llama.cpp/releases), or build from source. Do **not** drop this fork's `ggml-*` libraries into a stock llama.cpp build (ABI mismatch — this will fail to load models).
> - **Models:** use the `*-Q2_0_g64.gguf` files (official **group-64** `Q2_0`). The legacy `*-Q2_0.gguf` (group 128) won't load on group-64 builds; `*-PQ2_0.gguf` is this fork's group-128 variant.
> - `Q2_0` is already upstream in mainline llama.cpp for **CPU and Metal** — those work without this fork. Vulkan/CUDA come from this fork for now.
…Q2_0 future) + link demo status; ASCII punctuation
@khosravipasha
khosravipasha requested a review from Copilot July 17, 2026 00:46
@khosravipasha
khosravipasha merged commit 38c66ad into prism Jul 17, 2026
7 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

cmake --build build --config Release --target ggml-vulkan
# Full self-contained bundle (CPU backends + Vulkan), not just the ggml-vulkan.dll
# add-on, so users can download this one zip and run without merging with the CPU zip.
cmake -S . -B build -DGGML_VULKAN=ON -DGGML_NATIVE=OFF -DGGML_BACKEND_DL=ON -DGGML_CPU_ALL_VARIANTS=ON -DGGML_OPENMP=OFF -DLLAMA_BUILD_BORINGSSL=ON
-DLLAMA_BUILD_BORINGSSL=ON
cmake --build build --target ggml-hip -j ${env:NUMBER_OF_PROCESSORS}
# Full self-contained bundle (CPU backend + HIP), not just the ggml-hip.dll add-on.
cmake --build build -j ${env:NUMBER_OF_PROCESSORS}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Please provide how to use the release downloads as they're not complete llama.cpp archives.

2 participants